package com.taru.service.impl;

import com.taru.dao.AdminMapper;
import com.taru.model.Admin;
import com.taru.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin queryAdmin(String adminName, String adminPassword) {
        return adminMapper.queryAdmin(adminName,adminPassword);
    }

    @Override
    public int updateAdminById(Admin admin) {
        return adminMapper.updateAdminById(admin);
    }
}
